<include file="../Public/header" />
<script data-main="__PUBLIC__/admin/js/page/admin/user/addusergroupmanage" src="__PUBLIC__/admin/js/lib/requirejs/require.js"></script>
</head>

<body>
  <div class="page">
    <div class="page-hd">
      <if condition="isset($res)">
        <h1>{$Think.lang.editorUserManageGroup}</h1>
        <else />
        <h1>{$Think.lang.addUserManageGroup}</h1>
      </if>
    </div>
    <div class="form">
      <if condition="isset($res)">
        <form action="{:URL('admin/User/editGroupManage')}" id="J_form" method="post">
          <else />
          <form action="{:URL('admin/User/addGroupManage')}" id="J_form" method="post">
      </if>
      <input type="hidden" value="{$res.id}" name="id" />
      <dl class="kv">
        <dt>
          <label>{$Think.lang.name}：</label>
        </dt>
        <dd>
          <input class="input-text" type="text" name="name" id="name" value="{$res.name}" required />
          <span class="remark" id="vaname"></span>
          <span class="required">*</span>
          <div class="kv-error"></div>
        </dd>
      </dl>
      <dl class="kv">
        <dt>
          <label>{$Think.lang.nodeStatus}：</label>
        </dt>
        <dd>
          <label>
            <input type="radio" name="status" id="status" value="1" <neq name="res['status']" value="0">checked='checked'</neq>>{$Think.lang.enable}</label>
          <label>
            <input type="radio" name="status" id="status" value="0" <eq name="res['status']" value="0">checked='checked'</eq>>{$Think.lang.disable}</label>
        </dd>
      </dl>
      <div class="actions">
        <if condition="isset($res)">
          <input class="btn btn-y" style="*width: 145px;" type="submit" value="{$Think.lang.editorUserManageGroup}" />
          <else />
          <input class="btn btn-y" style="*width: 145px;" type="submit" value="{$Think.lang.addUserManageGroup}" />
        </if>
        <a href="{:URL('admin/User/userGroupManage')}" class="btn btn-n">{$Think.lang.cancel}</a>
      </div>
      </form>
    </div>
  </div>
</body>

</html>
